package mfund.com.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mfund.com.model.*;

import mfund.com.dao.*;

import mfund.com.service.*;



@Service
public class ProductValueServiceImpl implements ProductValueService {


    @Resource
    private VProductValueMapper vproductValueMapper;

    @Resource
    private TProductValueMapper tproductValueMapper;

    @Override
    public List<VProductValue> query() {
    	VProductValueExample pexam=new VProductValueExample();
        List<VProductValue> result = vproductValueMapper.selectByExample(pexam);

        return result;
    }

    @Override
    public List<TProductValue> getHistoryValuesById(Integer productId){
    	TProductValueExample pexam=new TProductValueExample();
    	TProductValueExample.Criteria criteria=pexam.createCriteria();
    	criteria.andProductIdEqualTo(productId);

        List<TProductValue> result = tproductValueMapper.selectByExample(pexam);

        return result;
    }
}
